package com.mxprojects.constructors
{
	import flash.display.MovieClip;

	public class DropdownButton extends MovieClip
	{
		private const ARROW_UP:String = "up";
		private const ARROW_DOWN:String = "down";
		
		public var background:MovieClip;
		public var arrow:MovieClip;
		
		public function DropdownButton(){
			arrow.gotoAndStop(1);
		}
		
		public function flipArrow(isDirectionUp:Boolean):void {
			if(isDirectionUp){
				arrow.gotoAndPlay(ARROW_UP);
			}else{
				arrow.gotoAndPlay(ARROW_DOWN);
			}
		}
	}
}